C Programming Tutorial: Closing Files - fclose() || Must Watch
close()closesafiledescriptor,sothatitnolongerreferstoanyfileandmaybereused.Anyrecordlocks(seefcntl(2))heldonthefileitwasassociated ...,Inthefollowingexample,close()isusedtocloseafiledescriptorafteranunsuccessfulattemptismadetoassociatethatfiledes...。參考影片的文章的如下: